package com.mininglamp.main;

/**
 * Created by zhouhuiyu on 17/9/5.
 */
public class StaticUtil {

    private static int id;

    private static StaticUtilEx ex;

    static {

        System.out.println("i'm static....");
        id = 100;

    }

    public void done() {

        if (ex != null) {
            System.out.println("ex is not null!");
            ex.toString();
            return;
        }

        ex = new StaticUtilEx();
        System.out.println("ex is null, create a new object.");

    }

}
